package com.proxy.util;

public interface Constants {
	
	//DB connection string
	final String URL = "jdbc:mysql://localhost:3306/freelancerj2ee";
	final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
	final String USER = "root";
	final String PASSWORD = "12345";
	
	final String GOOGLE_HOST_NAME = "www.google.com";
	final String OTHER_HOST_NAME = "www.cnn.com";
	
	final String HTTP_SCHEME = "http";
	final Integer PORT_80 = 80;
    
	//connect to proxy time out setting
    final Integer CONNECTION_TIMEOUT = 10000;
	final Integer READ_TIMEOUT = 10000;
	final Integer CONNECTION_MANAGER_TIMEOUT = 50000;
	
	//Thread pool
	final int CORE_POOL_SIZE = 5;
	final int MAX_POOL_SIZE = 10;
	final int KEEP_ALIVE_TIME = 100;
	final int QUEUESIZE = 50;
	
	final String GOOGLE_PROXIES_TABLE_NAME = "google_proxies";
	final String WORKING_PROXIES_TABLE_NAME = "working_proxies";
	final String BOTH_PROXIES_TABLE_NAME = "both_proxies";
	
	final String [] GOOGLE_REGEX_STRING = {"Google Search</title>"};
	final String [] OTHER_REGEX_STRING = {"<title>CNN","CNN International"}; //no > .

}
